package com.framework.modules.finance.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.framework.common.utils.PageUtils;
import com.framework.common.utils.Query;

import com.framework.modules.finance.dao.PlatformIncomeDao;
import com.framework.modules.finance.entity.PlatformIncomeEntity;
import com.framework.modules.finance.service.PlatformIncomeService;


@Service("platformIncomeService")
public class PlatformIncomeServiceImpl extends ServiceImpl<PlatformIncomeDao, PlatformIncomeEntity> implements PlatformIncomeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        EntityWrapper wrapper=new EntityWrapper<PlatformIncomeEntity>();
        Page<PlatformIncomeEntity> page = this.selectPage(
                new Query<PlatformIncomeEntity>(params).getPage(),
                wrapper.orderBy("adddate",false)
        );

        return new PageUtils(page);
    }

}
